<!--  -->
<template>
  <div id="cart">
    <nav-bar class="nav-bar">
      <div slot="center">购物车({{length}})</div>
    </nav-bar>
    <cart-list></cart-list>
    <cart-bottom-bar></cart-bottom-bar>
  </div>
</template>

<script>
import { mapGetters } from 'vuex';
import NavBar from 'components/common/navbar/NavBar.vue';
import CartList from './childComps/cartList.vue';
import CartBottomBar from './childComps/cartBottomBar';
export default {
  name:'Cart',
  data () {
    return {
       
    };
  },

  components: {CartList, NavBar, CartBottomBar},

  computed: {
    ...mapGetters({length:'cartGoodsNumber'})
  },

  mounted() {},

  methods: {
    
  }
}

</script>
<style lang='scss' scoped>
.nav-bar{
  background-color: #FF8198;
  color: #fff;
}
</style>